package com.javachmapi.springbootelk.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by 宋利军
 */
@RestController
public class IndexController {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @GetMapping("/test")
    public Object index() {
        logger.debug("=====  欢迎学习Java学习大纲文档--debug  =======");
        logger.info("=====  欢迎学习Java学习大纲文档--info  =======");
        logger.warn("=====  欢迎学习Java学习大纲文档--warn  =======");
        logger.error("=====  欢迎学习Java学习大纲文档--error  =======");
        return "success";
    }
}
